from django.contrib.auth.views import login, logout

def user_login(request):
    return login(request, template_name="login.html")

def user_logout(request):
    return logout(request, next_page='/blog/login/')